<?php
/*------------------------------------------------------------------
 | Software: APHP - A PHP TOP Framework
 | Site: https://aphp.top
 |------------------------------------------------------------------
 | (C)2020-2025 无念<24203741@qq.com>,All Rights Reserved.
 |-----------------------------------------------------------------*/
/**
 * 自定义验证规则
 */
return [
    'username' => '/^\w{4,20}$/', //用户4-20位
    'password' => '/^\w{5,12}$/', //密码5-12位
    'mobile' => '/^1[3-9]\d{9}$/', //手机号
    'qq' => '/^[1-9][0-9]{4,12}$/', //QQ号
    'id_card' => '/^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$/', //身份证号
    'bankcard' => '/^[1-9][0-9]{18}$/', //银行卡号
    'money' => '/^\d+\.?\d*$/', //金额
];